package edu.umd.ion.wavemeter.server;

/**
 * Data class for the information returned by the WavemeterLibrary
 * WaitForEvent functions.
 * @author monroe-lab
 *
 */
public class WLMEvent { 
	/**
	 *  Return value of the function called internally.
	 */
	public int Result;
	
	/**
	 *  Serial number of the Wavemeter.
	 */
	public int Version;
	
	/**
	 *  Mode of the returned value.
	 */
	public int Mode;
	
	/** 
	 *  Integer return value.
	 */
	public int IntVal; 
	
	/**
	 * Double return value.
	 */
    public double DblVal;
    
    /**
     * Optional int specifier used for some events.
     */
    public int Res1;
    
    public WLMEvent(int version, int mode, int intVal, double doubleVal, int res1 ) {
    	Version = version;
    	Mode = mode;
    	IntVal = intVal;
    	DblVal = doubleVal;
    	Res1 = res1;
    }
    
    public WLMEvent() {}
}
